package com.common.weapp.service;

public interface WeService {
	
	 /**
	   * The Url  to get access_token.
	   */
	  String GET_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type={grant_type}&appid={appid}&secret={secret}";

	  /**
	   * 
	   * Is the message come from WeChat.
	   * http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319&token=&lang=zh_CN
	   * 
	   */
	  boolean checkSignature(String timestamp, String nonce, String signature);

	  /**
	   * To get access_token.
	   *
	   */
	  String getAccessToken() throws Exception;

}
